<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/17
 * Time: 15:12
 */

namespace app\model;


use think\Model;

class CustomerModel extends BaseModel
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    /**
     * 关联管理员表--获取约访人
     */
    public function getAbout(){
        return $this->hasOne('UserModel','id','about_id');
    }

    /**
     * 关联管理员表--获取律师
     */
    public function getLawyer(){
        return $this->hasOne('UserModel','id','lawyer_id');
    }






}